﻿using Ilongshi.Oversea.DataAccess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ec_System.Service.Web
{
    public class SiteConfigServices
    {
        /// <summary>
        /// 根据keyStr获取站点配置的valueStr
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public string GetSiteConfigByKey(string key)
        {
            var cmd  =DataCommandManager.GetDataCommand("GetSiteConfigByKey");
            cmd.SetParameterValue("@keyStr", key);

            return cmd.ExecuteScalar<string>();
        }

        
    }
}
